package com.xiyoufang.club.repository;

import com.xiyoufang.club.pojo.UserHu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public abstract interface UserHuRepository
        extends JpaRepository<UserHu, Integer> {
    @Query(nativeQuery = true, value = "SELECT * FROM user_hu WHERE user_id =:userId")
    public abstract UserHu getAllByUserId(@Param("userId") String paramString);
}
